package top.shiyiri.shops.service;

import top.shiyiri.shops.bean.ProTotalCount;
import top.shiyiri.shops.dao.ProTotalCountDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/28
 */
@Service
public class ProTotalCountService {


    @Autowired
    private ProTotalCountDao dao;

    public List<ProTotalCount> proTotalCountByPage(int page, int i) {
        return dao.proTotalCountByPage((page - 1) * i, i);
    }

    public int totalLine() {
        return dao.totalLine();
    }

    public List<ProTotalCount> proTotalCount() {
        return dao.proTotalCount();
    }

    public List<ProTotalCount> proTotalCount2() {
        return dao.proTotalCount2();
    }
}
